import request from "@/api/api"

const Categorize = () => {
    return request({
        url: "/category/indexaction",
        method: 'get',        //发生请求方式
    })
}

const Categorize_one = (id) => {      //居家数据
    return request({
        url: "/category/currentaction?id=" + id,
        method: 'get',
    })
}
//跳转分类数据页面
//http://shop.bufantec.com/bufan/goods/goodsList?categoryId=1008002
const classify = (id) => {
    return request({
        url: `/goods/goodsList?categoryId=${id}`,
        method: 'get'
    })
}
//跳转分类表头数据  http://shop.bufantec.com/bufan/category/categoryNav?id=1005007
const showcase = (id) => {
    return request({
        url: `/category/categoryNav?id=${id}`,
        method: 'get'
    })
}
export {
    Categorize,
    Categorize_one,
    classify,
    showcase
}